package com.open.capacity.user.service;

import com.open.capacity.common.model.TitleRule;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;

import java.util.Map;

/**
 * @author liutao
 * @date 2021-02-23 09:41
 */
public interface TitleRuleService {
    /**
     * 模糊查询称号规则
     * @param params
     * @return
     */
    PageResult<TitleRule> getSelectTitleRules(Map<String, Object> params);

    /**
     * 添加称号规则
     * @param titleRule
     * @return
     */
    Result addTitleRules(TitleRule titleRule);

    /**
     * 修改称号规则
     * @param titleRule
     * @return
     */
    Result updateTitleRules(TitleRule titleRule);

    /**
     * 删除称号规则
     * @param ttruid
     * @return
     */
    Result delTitleRules(int ttruid);
}
